package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author szt
 * @since 2020-09-06
 */
@TableName("c_sys_log")
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id(日志表)
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private Integer userNo;

    /**
     * 用户类型 1-系统用户 2-微信用户
     */
    private String userType;

    /**
     * sys-组织框架 gy-公益
     */
    private String moduleType;

    /**
     * 详情功能类型 eg gy-100 公益活动新增 gy101-公益活动修改 gy103-公益活动删除
     */
    private String functionType;

    /**
     * 1-成功 9-失败
     */
    private String state;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private String createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }
    public String getFunctionType() {
        return functionType;
    }

    public void setFunctionType(String functionType) {
        this.functionType = functionType;
    }
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public SysLog(Integer userNo, String userType, String moduleType, String functionType, String state, String remark, String createTime) {
        this.userNo = userNo;
        this.userType = userType;
        this.moduleType = moduleType;
        this.functionType = functionType;
        this.state = state;
        this.remark = remark;
        this.createTime = createTime;
    }

    public SysLog() {
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysLog{" +
        "id=" + id +
        ", userNo=" + userNo +
        ", userType=" + userType +
        ", moduleType=" + moduleType +
        ", functionType=" + functionType +
        ", state=" + state +
        ", remark=" + remark +
        ", createTime=" + createTime +
        "}";
    }
}
